﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SATF.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>SATF在线系统</title>
    <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
    <meta name="Title" content="SATF在线系统" />
    <meta name="Description" content="Sogou Automatic Test Framework" />
    <meta name="Keywords" content="extjs,ext,asp.net,control,asp.net 2.0,ajax,web2.0" />
    <link href="css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager ID="PageManager1" AutoSizePanelID="RegionPanel1" runat="server">
        </ext:PageManager>
        <ext:RegionPanel ID="RegionPanel1" ShowBorder="false" runat="server">
            <Regions>
                <ext:Region ID="Region1" Margins="0 0 0 0" Height="62px" ShowBorder="false" ShowHeader="false"
                    Position="Top" Layout="Fit" runat="server">
                    <Toolbars>
                        <ext:Toolbar ID="Toolbar1" Position="Bottom" runat="server">
                            <Items>
                                <ext:ToolbarFill ID="ToolbarFill1" runat="server">
                                </ext:ToolbarFill>
                                <ext:Label ID="lableNotice" Width="100px" Text="您尚未登录"  runat="server">
                                </ext:Label>
                                <ext:Button ID="btnLogon" IconUrl="~/images/16/user.png" Text="登录" OnClick="btnLogon_Clicked"
                                    runat="server">
                                </ext:Button>
                                <ext:Button ID="btnRegister" IconUrl="~/images/16/user.png" Text="注册" OnClick="btnRegister_Clicked"
                                    runat="server">
                                </ext:Button>
                                <ext:ToolbarText ID="ToolbarText3" Text="&nbsp;&nbsp;主题：" runat="server">
                                </ext:ToolbarText>
                                <ext:DropDownList ID="ddlTheme" Width="100px" AutoPostBack="true" OnSelectedIndexChanged="ddlTheme_SelectedIndexChanged"
                                    runat="server">
                                <ext:ListItem Text="蓝色" Selected="true" Value="blue" />
                                <ext:ListItem Text="银灰色" Value="gray" />
                                <ext:ListItem Text="Access" Value="access" />
                                </ext:DropDownList>
                                <ext:Button ID="btnHelp" IconUrl="~/images/16/user.png" Text="帮助" OnClick="btnHelp_Clicked"
                                    runat="server">
                                </ext:Button>
                            </Items>
                        </ext:Toolbar>
                    </Toolbars>
                    <Items>
                        <ext:ContentPanel ShowBorder="false" ShowHeader="false" BodyStyle="background-color:#C2D9F7;"
                            ID="ContentPanel1" runat="server">
                            <div class="header">
                                <a href="./Default.aspx" style="color:#fff;">SATF在线系统</a>
                            </div>
                        </ext:ContentPanel>
                    </Items>
                </ext:Region>

                <ext:Region ID="Region2" Split="true" EnableSplitTip="true" CollapseMode="Mini" Width="200px"
                    Margins="0 0 0 0" ShowHeader="true" Title="菜单" Icon="Outline" EnableCollapse="true"
                    Layout="Fit" Position="Left" runat="server">
                    <Items>
                        <ext:Accordion ID="accordion1" Width="250px" Height="450px" runat="server" ShowBorder="false" ShowHeader="false"
                            ShowCollapseTool="true">
                            <Panes>
                                <ext:AccordionPane ID="accordionPaneCM" runat="server" Title="案例管理" IconUrl="~/images/16/1.png"
                                    BodyPadding="2px 5px" Layout="Fit" ShowBorder="false" Collapsed="true">
                                    <Items>
                                        <ext:Tree runat="server" EnableArrows="true" ShowBorder="false" ShowHeader="false"
                                            AutoScroll="true" SelectedNodeIDArray="hello" ID="treeCM" OnNodeCommand="TreeNodeCommand" >
                                            <Nodes>
                                                <ext:TreeNode NodeID="hello" Text="树节点一" EnablePostBack="true" NavigateUrl="~/Empty.aspx"
                                                    Leaf="true" Target="main">
                                                </ext:TreeNode>
                                                <ext:TreeNode Text="树节点二" NavigateUrl="~/Empty.aspx" Leaf="true" EnablePostBack="true"
                                                    Target="main">
                                                </ext:TreeNode>
                                                <ext:TreeNode Text="树节点三" NavigateUrl="~/Empty.aspx" Leaf="true" EnablePostBack="true" Target="main">
                                                </ext:TreeNode>
                                            </Nodes>
                                        </ext:Tree>
                                    </Items>
                                </ext:AccordionPane>
                                <ext:AccordionPane ID="AccordionPanePM" runat="server" Title="任务计划管理" IconUrl="~/images/16/4.png"
                                    BodyPadding="2px 5px" ShowBorder="false" >
                                    <Items>
                                        <ext:Tree runat="server" EnableArrows="true" ShowBorder="false" ShowHeader="false"
                                            AutoScroll="true" SelectedNodeIDArray="myTasks" ID="treePM" OnNodeCommand="TreeNodeCommand">
                                            <Nodes>
                                                <ext:TreeNode NodeID="myTasks" Text="我的任务" NavigateUrl="~/HomePage.aspx"
                                                    Leaf="true" EnablePostBack="true" Target="main">
                                                </ext:TreeNode>
                                                <ext:TreeNode NodeID="newTask" Text="新建任务" NavigateUrl="~/TaskManager/NewTaskPage1.aspx"
                                                    Leaf="true" EnablePostBack="true" Target="main">
                                                </ext:TreeNode>
                                            </Nodes>
                                        </ext:Tree>
                                    </Items>
                                </ext:AccordionPane>
                                <ext:AccordionPane ID="AccordionPaneAdmin" runat="server" Title="管理员" IconUrl="~/images/16/4.png"
                                    BodyPadding="2px 5px" ShowBorder="false" Visible="false">
                                    <Items>
                                        <ext:Tree runat="server" EnableArrows="true" ShowBorder="false" ShowHeader="false"
                                            AutoScroll="true" SelectedNodeIDArray="personManager" ID="treeAdmin" OnNodeCommand="TreeNodeCommand">
                                            <Nodes>
                                                <ext:TreeNode NodeID="personManager" Text="人员管理" NavigateUrl="~/Empty.aspx"
                                                    Leaf="true" EnablePostBack="true" Target="main">
                                                </ext:TreeNode>
                                                <ext:TreeNode NodeID="machineManager" Text="机器管理" NavigateUrl="~/Empty.aspx"
                                                    Leaf="true" EnablePostBack="true" Target="main">
                                                </ext:TreeNode>
                                            </Nodes>
                                        </ext:Tree>
                                    </Items>
                                </ext:AccordionPane>
                            </Panes>
                        </ext:Accordion>
                    </Items>
                </ext:Region>
                <ext:Region ID="mainRegion" ShowHeader="false" Layout="Fit" Margins="0 0 0 0" Position="Center"
                    runat="server">
                    <Items>
                        <ext:TabStrip ID="mainTabStrip" EnableTabCloseMenu="true" ShowBorder="false" runat="server">
                            <Tabs>
                                <ext:Tab ID="DefaultTab" Title="首页" Layout="Fit" Icon="House" runat="server" IFrameUrl="./HomePage.aspx" EnableIFrame="True">
                                    <Toolbars>
                                        <ext:Toolbar ID="Toolbar2" runat="server">
                                            <Items>
                                                <ext:ToolbarFill ID="ToolbarFill2" runat="server">
                                                </ext:ToolbarFill>
                                                <ext:Button ID="btnSourceCode" Icon="PageWhiteCode" Text="button" EnablePostBack="false"
                                                    runat="server">
                                                </ext:Button>
                                            </Items>
                                        </ext:Toolbar>
                                    </Toolbars>
                                </ext:Tab>
                            </Tabs>
                        </ext:TabStrip>
                    </Items>
                </ext:Region>
            </Regions>
        </ext:RegionPanel>
        <ext:Window ID="windowLogon" Title="登录" Popup="false" EnableIFrame="true" runat="server"
        IsModal="true" Width="350px"  EnableClose="true" >
    </ext:Window>
    </form>
    <script type="text/javascript">

        var IDS = {
            accordion1: '<%= accordion1.ClientID %>',
            mainTabStrip: '<%= mainTabStrip.ClientID %>'
        };


        var TreeMenus = {
            treeCM: '<%= treeCM.ClientID %>',
            treePM: '<%= treePM.ClientID %>',
            treeAdmin: '<%= treeAdmin.ClientID %>'
        };

    </script>
    <script src="./js/default.js" type="text/javascript"></script>
</body>
</html>
